package com.sanzang.task;

import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 * @author sanzang
 *
 */
@Component
public class MyTask1 {	
	
	//@Scheduled(fixedDelay  = 10000)
	@Scheduled(cron = "0 0 0/1 * * ?")
	public void gameOver() {
		System.out.println("重新开始一把游戏" +  new Date());
	}
}
